package com.irs.irsforum.service.impl;

import com.irs.irsforum.entity.Teacher;
import com.irs.irsforum.mapper.TeacherMapper;
import com.irs.irsforum.service.ITeacherService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yihuili
 * @since 2020-02-15
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements ITeacherService {

    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public Teacher getTeacherById(Long teacherId) {
        Teacher teacher = teacherMapper.getTeacherById(teacherId);
        return teacher;
    }
}
